package com.hb.core.pojo.project.notice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 投标邀请信息
 * </p>
 *
 * @author zhongdl
 * @since 2021-09-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_tender_invite_enterprise")
@ApiModel(value="TenderInviteEnterprise对象", description="投标邀请企业信息")
public class TenderInviteEnterprise extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公告ID")
    private Long noticeId;

    @ApiModelProperty(value = "方案(包)信息ID")
    private Long sectionId;

    @ApiModelProperty(value = "企业ID(关联jnpf机构信息表)")
    private String orgId;

    @ApiModelProperty(value = "企业名称")
    private String orgName;

    @ApiModelProperty(value = "邀请状态 (未反馈 2 已接收 3 已拒绝)")
    private Integer inviteStatus;

    @ApiModelProperty(value = "联系人")
    private String contacts;

    @ApiModelProperty(value = "联系方式")
    private String contactsPhone;

    @ApiModelProperty(value = "回执时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime receiptTime;

    @ApiModelProperty(value = "回执人员id")
    private String receiptId;

    @ApiModelProperty(value = "回执pdf")
    private Attachments receiptPdf;

    @ApiModelProperty(value = "拒绝原因")
    private String reasonForRejection;
}
